package com.baoteng.rbspy.service;

import com.baoteng.rbspy.model.response.ResponseModel;
import com.fasterxml.jackson.core.type.TypeReference;

import okhttp3.RequestBody;

public interface OkHttpClientService {

	public boolean logout();

	public boolean login();

	public boolean carlogin();

	public boolean ciflogin();
	
	/**
	 * 登陆见费出单系统
	 */
	public boolean cbclogin();
	
	public boolean isOnline();

	public boolean isCarOnline();
	
	public boolean isCifOnline();
	
	public <T> ResponseModel<T> getJson(String url, TypeReference<T> typeReference);

	public <T> ResponseModel<T> postJson(String url, String content, TypeReference<T> typeReference);

	public <T> ResponseModel<T> postJson(String url, RequestBody body, TypeReference<T> typeReference);

	public <T> ResponseModel<T> getHtml(String url, Class<T> clazz);

	public <T> ResponseModel<T> postHtml(String url, String content, Class<T> clazz);

	public <T> ResponseModel<T> postHtml(String url, RequestBody body, Class<T> clazz);
}
